<style>
    .tan-telphone{
        position: fixed;
        top: 40%;
        left: 15px;
        width: calc(100% - 30px);
        height: 160px;
        border-radius: 6px;
        background-image: url(__STATIC__/move/img/car_bac.jpg);
        background-repeat: no-repeat;
        background-size: 100% 100%;
        background-color: #fff;
        z-index: 999;
    }
    .tan-telphone>span{
        position: absolute;
        top: 10px;
        right: 10px;
        width: 16px;
        height: 16px;
        line-height: 14px;
        text-align: center;
        border: 1px solid #fff;
        border-radius: 50%;
        font-size: 12px;
        color: #fff;
    }
    .tan-telphone .tan-input{
        position: absolute;
        bottom: 10px;
        right: 12px;
        width: calc(100% - 24px);
        height: 40px;
        margin-left: 12px;
        border-radius: 8px;
        overflow: hidden;
        background-color: #fff;
    }
    .tan-telphone .tan-input input{
        float: left;
        width: calc(100% - 64px);
        height: 40px;
        font-size: 12px;
    }
    .tan-telphone .tan-input span{
        float: right;
        display: inline-block;
        width: 64px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        color: #fff;
        background-color: #E6373A;
    }
</style>


<div class="tan-telphone">
    <span>X</span>
    <div class="clearfix tan-input">
        <input type="number" placeholder="请输入电话号码,将以短信的形式告知" />
        <span>获取报价</span>
    </div>
</div>

<script type="text/javascript">
    var time = 15;$(".tan-telphone span").click(function(){
        $(".tan-telphone").hide()
        time = 15;
        downTime()
    })
    function downTime(){
        console.log(time)
        clearInterval(downTime)
        var downTime = setInterval(function(){
            time--;
            console.log(time)
            if(time<0){
                console.log(time)
                clearInterval(downTime)
                $(".tan-telphone").show()
            }
        },1000)
    }
</script>